function Tutorial03Assistant() {
	/* this is the creator function for your scene assistant object. It will be passed all the 
	   additional parameters (after the scene name) that were passed to pushScene. The reference
	   to the scene controller (this.controller) has not be established yet, so any initialization
	   that needs the scene controller should be done in the setup function below. */
	 var page_num = 0;
	 
}

Tutorial03Assistant.prototype.setup = function() {
	/* this function is for setup tasks that have to happen when the scene is first created */
		
	/* use Mojo.View.render to render view templates and add them to the scene, if needed. */
	
	/* setup widgets here */
	
	/* add event handlers to listen to events from widgets */
//	this.controller.setupWidget(Mojo.Menu.appMenu,
//       this.attributes = {
//                omitDefaultItems: false
//            },
//    this.model = {
//        			visible: true,
//        			
//    			})

	/*this.buttonAttributes = {};
	
	this.buttonModel = {
		buttonLabel : 'Next',
		buttonClass : 'palm-button affirmative buttonfloat',
		disabled : false
	};
	
	this.controller.setupWidget("nextButton03", this.buttonAttributes, this.buttonModel);
	Mojo.Event.listen(this.controller.get('nextButton03'), Mojo.Event.tap, this.next.bind(this));*/
	this.CommandMenuAttributes = {
										spacerHeight: 25,
										menuClass: 'no-fade',
									 };

		
		this.CommandMenuModel = {
									visible: true,
									items: [{		
											disabled:false,
											icon: 'back',
											command: 'previous',
											},
											{		
											disabled:false,
											icon: 'forward',
											command: 'next'
											}]
								};
										
		this.controller.setupWidget(Mojo.Menu.commandMenu, this.CommandMenuAttributes, this.CommandMenuModel);
}
Tutorial03Assistant.prototype.activate = function(event) {
	/* put in event handlers here that should only be in effect when this scene is active. For
	   example, key handlers that are observing the document */
	  
	 // start the first page
	 var myimg = "../../../images/prefs.png"
	// $(screenShot).innerHTML = '<img src="../../images/prefs.png>"</img>';
	 $(textTop).innerHTML = "Welcome to the Lemonade Tutorial. Simply tap the arrow buttons on the bottom of the screen to move forward and backwards in this tutorial.";
	 $(textMiddle).innerHTML = "Before Begining a game you can set the number of days and the difficult in the preferences menu.  You can access the menu at any time through the App menu or from the start screen.";
	   	
}
Tutorial03Assistant.prototype.handleCommand = function (event) {
	this.controller=Mojo.Controller.stageController.activeScene();  
	if (event.type == Mojo.Event.commandEnable &&
	    (event.command == Mojo.Menu.helpCmd)) {
         event.stopPropagation(); // enable help. now we have to handle it
    }
	 if (event.type == Mojo.Event.commandEnable &&
	    (event.command == Mojo.Menu.prefsCmd)) {
         event.stopPropagation(); // enable help. now we have to handle it
    }
	console.log("RIGHT HERE");
	if (event.type == Mojo.Event.command) {
		var youOrdered = "";
		console.log("SettingsSceneAssistant::handleCommand(): Got command: " + event.command);
		switch (event.command) {
			
			// another built-in menu item, but we've enabled it (see below in this method)
			// so now we have to handle it:
			case Mojo.Menu.helpCmd:
				Mojo.Controller.stageController.pushScene('support');
				break;
				
			case Mojo.Menu.prefsCmd:
				Mojo.Controller.stageController.pushScene('settings');
				break;
			case "previous":
				this.previousPage();
				break;
			case "next":
				this.nextPage();
				break;
		}
	}	
}

Tutorial03Assistant.prototype.nextPage = function(event) {
	/* put in event handlers here that should only be in effect when this scene is active. For
	   example, key handlers that are observing the document */
	   Mojo.Controller.stageController.swapScene('start');
	   	
}

Tutorial03Assistant.prototype.previousPage = function(event) {
	/* put in event handlers here that should only be in effect when this scene is active. For
	   example, key handlers that are observing the document */
	   Mojo.Controller.stageController.popScene('tutorial03');
	   	
}

Tutorial03Assistant.prototype.deactivate = function(event) {
	/* remove any event handlers you added in activate and do any other cleanup that should happen before
	   this scene is popped or another scene is pushed on top */
}

Tutorial03Assistant.prototype.cleanup = function(event) {
	/* this function should do any cleanup needed before the scene is destroyed as 
	   a result of being popped off the scene stack */
}
